Facility Navigation Bar Tool – Methods
The following table lists and describes methods of the Facility Navigation Bar Tool. Methods are accessed using the control's script editor. See FacNavBar Methods for more information about using these methods in script.
Note: If a property or method in the script editor has two forms with the same name, one form exists for legacy support and the other form is current. When possible, use the current form. To select the current form, append .X. to the name of the object to which the property or method applies, and then enter the property or method name. For instance, enter MyObject.X.MyProperty. If a property or method in the script editor has only one form, the X method might or might not apply. The
column in the table below indicates whether or not a property or method is accessible using the X method.
| Method |
|
Description |
|---|---|---|
|
Yes |
The AboutBox method displays an About dialog box for the control. SyntaxAboutBox() ExampleThe following examples launch an About dialog box for the control. Copy
AboutBox
|
|
|
No |
The AlarmAcknowledge method acknowledges an alarm. |
|
|
Yes |
The CanNavNext method specifies whether the next target item (facility or node) can be selected. |
|
|
Yes |
The CanNavPrev method specifies whether the previous target item (facility or node) can be selected. |
|
|
Yes |
The CanSelNext method returns True if the next item (facility attribute value or node) for the specified level can be selected. Otherwise returns False. |
|
|
Yes |
The CanSelPrev method returns True if the previous item (facility attribute value or node) for the specified level can be selected. Otherwise returns False. |
|
|
No |
The ClearMenu method clears all custom items from the context menu. Syntax
Parameters
Return Values
|
|
|
Yes |
The EnableAllInitialFilterRules method enables or disables all rules and vectors for the initial filter. |
|
|
Yes |
The EnableInitialFilterRule method enables or disables a rule or vector of rules by name for the initial filter. |
|
|
No |
||
|
Yes |
The GetAllTargetFacTags method returns an array of all target facility tags. |
|
|
No |
The GetDlgCtrlID method returns the numeric resource identifier of the control within TheView. |
|
|
Yes |
The GetFacNavBarCustomAttribute method returns the value of a facility navigation bar custom attribute. |
|
|
Yes |
The GetGroup method returns the object group to which an object belongs, and returns null if the object does not belong to a group. The GroupID property returns the GroupID. Calling GetGroup is equivalent to calling TheView GetGroupByID and passing the value of the object’s GroupID property, and is provided for convenience. |
|
|
Yes |
The GetInitialFilterRuleNames method returns the names of enabled and disabled rules for the initial filter. |
|
|
Yes |
The GetSelecedTargetFacTag method returns the facility tag corresponding to the target level combo box selection. |
|
|
Yes |
The GetTargetFacilityAttrValues method returns the specified attribute value for all target facilities. |
|
|
No |
The HistoryAlarms method calls the Alarm History dialog box, which shows the alarm history of an individual alarm, and provides options for showing only particular types of alarm events. See Alarm History for more information. |
|
|
No |
The HistoryValues method calls the History Values dialog box, which shows all the history records for a given point, including additional information if the history name came from the PNT. See History Records for more information. |
|
|
No |
The IsSelected method indicates if the tool or control is selected. Can be used with [ContextMenuAutoSelect]. |
|
|
No |
The LayerName method gets the name of the layer on which the object resides. |
|
|
No |
The Move method moves an object by the specified amount, relative to its current position. |
|
|
Yes |
The NavNext method navigates to the next target facility or node. Returns the number of the lowest-level combo box whose selection changed. The EventOnSelChangeLevel event is triggered when NavNext is called. |
|
|
Yes |
The NavPrev method navigates to the previous target facility or node. Returns the number of the lowest-level combo box whose selection changed. The EventOnSelChangeLevel event is triggered when NavPrev is called. |
|
|
No |
The NotifySelChange method forces a complete refresh of the tool and any connected/affected objects. For example, when used with a Group Navigation Bar, NotifySelChange forces a filter change on a Group Navigation Bar to apply to an associated Group Grid object. |
|
|
Yes |
||
|
No |
The OnUpdate method updates the control to ensure that any property modifications have taken effect. |
|
|
No |
The OnUpdateResize method updates the control to ensure that any modifications to its boundary have taken effect. |
|
|
No |
The OnUpdateStyle method updates the control to ensure that any modifications to its style properties have taken effect. |
|
|
Yes |
The PersistRunTimeConfig method saves the current control configuration snapshot to the runtime registry key. |
|
|
No |
||
|
No |
||
|
No |
||
|
No |
||
|
No |
||
|
No |
The RegisterPointForChangeNotice method registers an unrelated point on a screen that may change its value. Used in conjunction with EventPointChange. |
|
|
Yes |
||
|
No |
||
|
Yes |
For objects, the Restart method stops and restarts Run mode. For TheFrame/TheView, the Restart method restarts TheView with new site, service, and facility information, if applicable. | |
|
Yes |
The RestoreDesignTimeConfig method reverts the control to its design-time configuration. |
|
|
Yes |
The RestoreRunTimeConfig method reverts the control back to the last runtime configuration. |
|
|
No |
The RunInitialize method runs the object’s EventInitialize event code. |
|
|
No |
This method is not used. |
|
|
No |
The Select method selects the tool or control. "True" to select, "false" to clear. Can be used with [ContextMenuAutoSelect]. |
|
|
Yes |
The SelNext method selects the next item (facility attribute value or node) for the specified level. If Wrap is True, the selection wraps to the first item, if necessary. The EventOnSelChangeLevel event is triggered when SelNext is called. |
|
|
Yes |
The SelPrev method selects the previous item (facility attribute value or node) for the specified level. If Wrap is True, the selection wraps to the last item, if necessary. The EventOnSelChangeLevel event is triggered when SelPrev is called. |
|
|
Yes |
The SelectTargetFacility method selects the item in the target combo box that corresponds to the specified facility tag. |
|
|
Yes |
The SelFacNavBarCustomAttribute method sets the value of a facility navigation bar custom attribute. |
|
|
No |
The SetFocus method sets the focus to the control. |
|
|
No |
||
|
No |
||
|
No |
||
|
No |
||
|
Yes |
The Start method configures the control and starts Run mode. |
|
|
Yes |
The Stop method stops Run mode. |
|
|
No |
||
|
No |
||
|
No |
||
|
No |
||
|
No |
The X method returns an object that lists properties and methods specific to an ActiveX control. This method is only available for some ActiveX controls. |


